package com.pms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pms.dao.EmployeeLeaveDao;
import com.pms.pojo.Department;
import com.pms.pojo.EmpLeave;
import com.pms.pojo.Employees;
import com.pms.pojo.LeaveEmployee;
import com.pms.pojo.LeaveQueryRequire;
import com.pms.pojo.Post;
import com.pms.pojo.Require;
import com.pms.service.EmployeeLeaveService;

@Service("employeeLeaveService")
public class EmployeeLeaveServiceImpl implements EmployeeLeaveService{
	
	@Resource(name="employeeLeaveDao")
	private EmployeeLeaveDao employeeLeaveDao;
	
	public void setStatementsdao(EmployeeLeaveDao employeeLeaveDao) {
		this.employeeLeaveDao = employeeLeaveDao;
	}
	
	public List<LeaveEmployee> getEmployeeLeave(LeaveQueryRequire Lrequire){
		return this.employeeLeaveDao.getEmployeeLeave(Lrequire);
	}

	@Override
	public List<Department> getDepartments() {
		// TODO Auto-generated method stub
		return this.employeeLeaveDao.getDepartments();
	}

	@Override
	public List<Post> getPost() {
		// TODO Auto-generated method stub
		return this.employeeLeaveDao.getPost();
	}
	@Override
	public List<Employees> getEmployees() {
		// TODO Auto-generated method stub
		return this.employeeLeaveDao.getEmployees();
	}

	@Override
	public List<Department> getDepartment() {
		// TODO Auto-generated method stub
		return this.employeeLeaveDao.getDepartment();
	}

	@Override
	public List<Employees> getRequireEmployees(Require require) {
		// TODO Auto-generated method stub
		return this.employeeLeaveDao.getRequireEmployees(require);
	}

	@Override
	public void updateEmployee(EmpLeave empLeave) {
		// TODO Auto-generated method stub
		this.employeeLeaveDao.updateEmployee(empLeave);
	}

	@Override
	public void addDeptTransfer(EmpLeave empLeave) {
		// TODO Auto-generated method stub
		this.employeeLeaveDao.addDeptTransfer(empLeave);
	}

}
